#include <iostream>
#include <cmath>
#include <list>
#include <algorithm>
#include <map>
#include <queue>

using namespace std;

//function used to solve power
double pow(double Base, int Exp) {
    
    double result = 1;

    while (Exp) {

        if (Exp & 1) {      //judge parity
            result *= Base;
        }

        Base *= Base;       //base update, i.e., square the base
        Exp >>= 1;          //move the exponent Exp to the right by one place, i.e., divide the exponent by 2
    }

    return result;
}

int main() {

    double base_num;
    int exp_num;

    cin >> base_num >> exp_num;    //get the Base number and the Exponent
    cout << pow(base_num, exp_num) << endl;

    return 0;
}